package com.hcy.common.dto.request;

import com.hcy.rabbitbasicmodel.signl.Insert;
import com.hcy.rabbitbasicmodel.signl.Query;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/4/13 17:17
 */
@Data
public class PushMsgRequestDTO {

    /**
     * 1=订单通知，2=系统通知
     */
    @NotNull(groups = Insert.class)
    private Integer typeId;

    /**
     * 类型名
     */
    @NotNull(groups = Insert.class)
    private String type;

    /**
     * 时间
     */
    @NotNull(groups = Insert.class)
    private Date time;

    /**
     * 内容
     */
    @NotNull(groups = Insert.class)
    private String content;

    /**
     * 0=未读，1=已读
     */
    private Boolean isVisited;

    /**
     * 司机名
     */
    private String driverName;

    /**
     * 乘客名
     */
    private String customerName;

    /**
     * 0=司机，1-乘客，2=管理端
     */
    @NotNull(groups = Insert.class)
    private Integer master;

    @NotNull(groups = Query.class)
    private Integer pageNo;
    @NotNull(groups = Query.class)
    private Integer pageSize;
}
